<?php

require_once 'modules/list/models/List.php';


class phoneSticker extends Nine_Sticker
{
	
	public function run()
	{
		
//		$objList = new Models_List();
//		$this->view->phone  = $objList->getListById(3);
//		$this->view->email  = $objList->getListById(5);
//		$now = getdate(); 
//		$currentTime = $now["hours"] . ":" . $now["minutes"];
//		$morning = "08:00";
//		$night = "17:00";
//		if($morning <= $currentTime && $currentTime <= $night){
//			$this->view->checktime = true;
//		}
//		else{
//			$this->view->checktime = false;
//		}
		
		$objList = new Models_List();
		$this->view->phone  = $objList->getListById(3);
		$this->view->email  = $objList->getListById(5);
		$now = getdate(); 
		$currentTime = $now["0"];
		$morning = mktime("08","00","00");
		$night = mktime("17","00","00");
		if($morning <= $currentTime && $currentTime <= $night){
			$this->view->checktime = true;
		}
		else{
			$this->view->checktime = false;
		}
	}
}